Skip to content

[3.14] gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (GH-134468)#134512

Merged
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-899c7dc-3.14
May 22, 2025
Merged

[3.14] gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (GH-134468)#134512
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-899c7dc-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented May 22, 2025

Copy link
Copy Markdown
Contributor

Set the LC_CTYPE locale to the LC_TIME locale even if
nl_langinfo(ALT_DIGITS) result is ASCII. The result is a list
separated by NUL characters and the code only checks the first list
item which can be ASCII whereas following items are non-ASCII.

Fix test__locale for the uk_UA locale on RHEL 7.
(cherry picked from commit 899c7dc)

Co-authored-by: Victor Stinner vstinner@python.org
Co-authored-by: Serhiy Storchaka storchaka@gmail.com

Set the LC_CTYPE locale to the LC_TIME locale even if
nl_langinfo(ALT_DIGITS) result is ASCII. The result is a list
separated by NUL characters and the code only checks the first list
item which can be ASCII whereas following items are non-ASCII.

Fix test__locale for the uk_UA locale on RHEL 7.
(cherry picked from commit 899c7dc)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants